import service from '@/utils/request'

// @Tags GameTone
// @Summary 创建GameTone
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.GameTone true "创建GameTone"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /gameTone/createGameTone [post]
export const createGameTone = (data) => {
  return service({
    url: '/gameTone/createGameTone',
    method: 'post',
    data
  })
}

// @Tags GameTone
// @Summary 删除GameTone
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.GameTone true "删除GameTone"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /gameTone/deleteGameTone [delete]
export const deleteGameTone = (data) => {
  return service({
    url: '/gameTone/deleteGameTone',
    method: 'delete',
    data
  })
}

// @Tags GameTone
// @Summary 删除GameTone
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除GameTone"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /gameTone/deleteGameTone [delete]
export const deleteGameToneByIds = (data) => {
  return service({
    url: '/gameTone/deleteGameToneByIds',
    method: 'delete',
    data
  })
}

// @Tags GameTone
// @Summary 更新GameTone
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.GameTone true "更新GameTone"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /gameTone/updateGameTone [put]
export const updateGameTone = (data) => {
  return service({
    url: '/gameTone/updateGameTone',
    method: 'put',
    data
  })
}

// @Tags GameTone
// @Summary 用id查询GameTone
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.GameTone true "用id查询GameTone"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /gameTone/findGameTone [get]
export const findGameTone = (params) => {
  return service({
    url: '/gameTone/findGameTone',
    method: 'get',
    params
  })
}

// @Tags GameTone
// @Summary 分页获取GameTone列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取GameTone列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /gameTone/getGameToneList [get]
export const getGameToneList = (params) => {
  return service({
    url: '/gameTone/getGameToneList',
    method: 'get',
    params
  })
}
